import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Dept from './views/org/dept.vue'
import Dictionary from './views/org/dictionary.vue'
import ShopRegister from './views/ShopRegister.vue'
import Shop from './views/org/shop.vue'
import User from './views/user/user.vue'
import Product from './views/product/product.vue'
import Pet from './views/pet/pet.vue'
import SMM from './views/pet/SMM.vue'
import SMMP from './views/pet/SMMP.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '系统管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/dept', component: Dept, name: '部门管理'},
            { path: '/dictionary', component: Dictionary, name: '数据字典'},
            { path: '/shop', component: Shop, name: '店铺管理'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '用户管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/user', component: User, name: '账号管理'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '服务管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/product', component: Product, name: '服务管理'},
        ]
    },
    {
        path: '/',
        component: Home,
        name: '宠物管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/pet', component: Pet, name: '宠物管理'},
            { path: '/SMM', component: SMM, name: '未处理消息管理'},
            { path: '/SMMP', component: SMMP, name: '已处理消息管理'},
        ]
    },
    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;